Trying the api db connection + prepared statement inits as a closure