Retrieve busy status from DB
Fix up isbusyfromdb query