file and db combination functionality added