Insert function

Added function for adding hash into the db