finish initializing data into database