updated database interface
began connecting front-end to back-end