db session creation functions, yaml conf helper functions