fixed up hardcoded database login, also changed behaviour of counting api requests