interface and database functioning