Exporting database content (like questions/answers/categories) from a database and copying a database are two very different things. The query for the former shouldn't be too complicated, but the details depend on what you want to export specifically (e.g. do you want user information included as well?).