Add basic schema routines
Add version check and dbi abstractions