loading data to database