improve db and guilds