More work on the post/view template.
Split database package into multiple files.
Add a semaphore to locking DB functions.