Fixed trying to query a unconnected database

When loading the plugin while there are players on the server, it
already tries to fetch the levels of the players before the database had
time to connect.