fail test if db is nil
format code
fix ssl-mode for drone test