add db init data, implement auth function