basic functionality done dawg
added a retry mechanisim, fixed queries a bit