Added post stubs
Fixed database structure
Completed API funcs.