API Move of codebase to parameterised query database abstraction layer