working version of database initiater all components