Modify entry string, add database stuff