Adding database connection and inserting (just need select now)