Optimized database queries for Fever API implementation. (Issue #15)
Fixed a MySQL error during setup procedure.