update gitignore
db: extract db_exec_query()
db: use db_exec_query()