Added more database table creation
refactored salt table and logic to allow for foreign keys