add DB support (from opentibia server)