Added some DB API stubs. Made enums more DB-friendly