Insert source and category to db