changed playerdb to use Database