Database adapter pg