Fixed some issues with database reading in server_class