[R] Adjusted app structure, started to configure database and user auth app