Fixed errors + styling in database queries panel