Revert "Use soci api"

This reverts commit cd704bc8.
14 jobs for master
in 17 minutes and 35 seconds and was queued for 3 seconds