New method to handle databases