changed default database method