Add preconfig recipes for db, secret file
Refactor helpers and recipes
move preconfig class to other file