Add database queries for creating 'threads' and 'posts' tables.
Add entity, dao and service for Threads table.
Add entity, dao and service for Posts table.