Update Database.class.php

Updated orders to handle table prefix...