Add api, two tables

Populate user favorite controls via db,
add two tables functionality.