added database connection to console
set relations between tables
Add pins/users association