Sample DB code in place

Conventions for db established.