2 way AJAX with initial db integration