Database established setup