Updated database structures

Changed callid to callerid in one instance in users table (it is in fact
more logical this way).

Added the logging datastructure.
Messages now have a timestamp of recording

All messages timestamps are now recorded and played back in order of
newest to oldest.

Closes #7
Fixed a bug related to archiving of old messages

Now when switching to old messages from new messages the new messages
won't be archived immediately.