fixed the database errors, fixed #statement