test more database related code