Redefining functions to populate DB.