Add func

Created more files and created a script to populate the database