added user field into tables and api