integration_test: move to database/sql

(cherry picked from commit 303a83dc39cf02544a5ad80cf5da57d49db53772)
main: use sql.NullString

(cherry picked from commit 8b01f4506f1d2660c8831c7729330db06b94c84b)