Adding DB structure. Also header and footer.
MySQL structure updated to use Unix time