Messages migrated to database

Insert, get and delete operations support