Fixed bug with database lose on game stop