init db step by step