Added migration, permissions and test table for db