refactored, made insert info and get info functions
testing functionality, added database